﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Arcadium.Audio;

namespace Arcadium.GameEntities.Characters
{
    class SmallEnemyCharacter : EnemyCharacter
    {
        #region Initialization

        public static Character Create(World world, int startDirection)
        {
            if (world is HostWorld)
                return new SmallEnemyCharacter(world, startDirection);
            return new RemoteCharacter(world, startDirection, CharacterType.SmallEnemy);
        }

        private SmallEnemyCharacter(World world, int startDirection)
            : base(world, startDirection)
        {
            Health = 2;
            SetTexture(CharacterType.SmallEnemy);
        }

        #endregion

        #region Update

        public override bool Update(GameTime gameTime)
        {
            return base.Update(gameTime);

            //// Updates the character and checks if it's dead.
            //if (base.Update(gameTime))
            //{
            //    if (Health > 0)
            //    {
            //        // TODO: this.character.SetTexture(GameEntities.Character.CharacterType.ZombieSmallEnemy);
            //        return false;
            //    }
            //    else
            //    {
            //        AudioManager.SmallEnemyDeath.Play();
            //        return true;
            //    }
            //}
            //return false;
        }

        #endregion
    }
}
